package tgc.edu.xzy.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.xzy.custom.CommonService;
import tgc.edu.xzy.entity.Student;
import tgc.edu.xzy.repository.StudentRepsitory;

@Service
public class StudentService extends CommonService<Student, Integer>{
	@Autowired
	private StudentRepsitory studentDao;
	
	public Student login(String username,String password) {
		return studentDao.findByUsernameAndPassword(username,password);
	}

	public List<Student> findByTbClassId(Integer bjid) {
		return studentDao.findByTbClassId(bjid);
	}

}
